package com.Merlin.myapplication.kotlin

fun main() {
    var p1 = Person1("Merlin")
}

class Person1(var name: String, var age: Int) {
    init {
        require(age > 0)
        println("初始化")
    }
    constructor(name: String) : this(name, 18)

}